#ifndef _REACTORDPOOL_H_
#define _REACTORDPOOL_H_
#include <queue>


class Reactor;
struct ReactorDef;
class ReactorPool
{
public:
	static const uint32  cuChunkSize=100;
	Reactor * Create(const ReactorDef* pDef);
	void Release(Reactor * pCard);
	ReactorPool();
	~ReactorPool();
private:
	uint32 m_iCounter;
	void AllocateChunk();
	std::queue<Reactor*> m_qFreeList;
	std::vector<char*> m_vChunks;

};
#endif

